<%@ include file="/WEB-INF/views/public/include.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<!-- 页面编码 -->
	<meta charset="utf-8">
	<!-- 设置IE内核优先为Edge -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<!-- 设置360浏览器渲染引擎为webkit -->
  	<meta name="renderer" content="webkit">
	<title>约见管理中心</title>
	<link rel="stylesheet" href="/resources/admin/static/css/bootstrap.css">
	<link rel="stylesheet" href="/resources/admin/static/css/public.css">
	<!-- 基本脚本载入 -->
	<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script src="/resources/admin/static/js/bootstrap.min.js"></script>
</head>
<body>
	<header class="navbar navbar-default">
		<div class="container">
			<div class="navbar-header">
				<a href="/" class="navbar-brand">约见管理中心</a>
			</div>
			<!-- END .navbar-header -->
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#">大番茄</a></li>
				</ul>
				<!-- END .nav -->
			</div>
			<!-- END .navbar-collapse -->
		</div>
		<!-- END .container -->
	</header>
	<!-- END .navbar -->
	<div id="content" class="site-content">
		<div class="container">
			<div class="row">
				<div class="col-lg-2 col-md-2 col-sm-2">
					<%@ include file="/WEB-INF/views/admin/public/menu.jsp"%>
					<!-- END .list-group -->
				</div>
				<!-- END .col-md-3 -->
				<div class="col-lg-10 col-md-10 col-sm-10">
					<form action="#" class="form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label">牛人</label>
							<div class="col-sm-10">
								<input value="${application.star.getName()}" type="text" class="form-control" readonly="true" required="true"></input>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">话题</label>
							<div class="col-sm-10">
								<input value="${application.subject.title}" class="form-control" readonly="true" required="true"></input>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">申请人</label>
							<div class="col-sm-10">
								<input value="${application.realName}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">见面时长</label>
							<div class="col-sm-10">
								<input value="${application.durationString}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">价格</label>
							<div class="col-sm-10">
								<div class="input-group">
									<input value="${application.price}" type="text" class="form-control" readonly="true" required="true" />
	      							<div class="input-group-addon">元/次</div>
								</div>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">告诉行家你要请教的问题</label>
							<div class="col-sm-10">
								<textarea class="form-control" rows="10">${application.chatContent}</textarea>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">介绍自己当前的情况（30-300字）</label>
							<div class="col-sm-10">
								<textarea class="form-control" rows="10">${application.instruction}</textarea>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">未来两周方便见面的时间（2-50字）</label>
							<div class="col-sm-10">
								<textarea class="form-control" rows="10">${application.dateTime}</textarea>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<hr>
						<div class="form-group">
							<label class="col-sm-2 control-label">真实姓名</label>
							<div class="col-sm-10">
								<input value="${application.realName}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">手机号</label>
							<div class="col-sm-10">
								<input value="${application.phone}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">微信号</label>
							<div class="col-sm-10">
								<input value="${application.weixin}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">平时活动区域</label>
							<div class="col-sm-10">
								<input value="${application.region}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">推荐人</label>
							<div class="col-sm-10">
								<input value="${application.presenter}" type="text" class="form-control" readonly="true" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">提交日期</label>
							<div class="col-sm-10">
								<fmt:formatDate value="${application.postAt}" type="both"></fmt:formatDate>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">电影咖评价</label>
							<c:choose>
								<c:when test="${application.starComment}">
									<div class="col-sm-10">
										<h3>评价内容</h3>
										<p>${starComment.content}</p>
										<h3>评价分值</h3>
										<p>${starComment.evaluation}</p>
										<h3>评价图片</h3>
										<p><img src="${starComment.img}"></p>
										<h3>评价时间</h3>
										<p><fmt:formatDate value="${starComment.postAt}" type="both"></fmt:formatDate></p>
									</div>
								</c:when>
								<c:otherwise>
									<p>还未评价</p>
								</c:otherwise>
							</c:choose>
							<!-- END .col-sm-10 -->
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">电影客评价</label>
							<c:choose>
								<c:when test="${application.userComment}">
									<div class="col-sm-10">
										<div class="col-sm-10">
											<h3>评价内容</h3>
											<p>${starComment.content}</p>
											<h3>评价分值</h3>
											<p>${starComment.evaluation}</p>
											<h3>评价图片</h3>
											<p><img src="${starComment.img}"></p>
											<h3>评价时间</h3>
											<p><fmt:formatDate value="${starComment.postAt}" type="both"></fmt:formatDate></p>
										</div>
									</div>
								</c:when>
								<c:otherwise>
									<p>还未评价</p>
								</c:otherwise>
							</c:choose>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<hr>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-primary">更新</button>
								<button type="submit" class="btn btn-success">通过审核</button>
								<button type="submit" class="btn btn-danger">拒绝</button>
								<span>|</span>
								<button type="submit" class="btn btn-success">已约见</button>
								<button type="submit" class="btn btn-danger">未约见</button>
								<button type="submit" class="btn btn-warning">待约见</button>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
					</form>
					<!-- END .form-horizontal -->
				</div>
				<!-- END .col-md-9 -->
			</div>
			<!-- END .row -->
		</div>
		<!-- END .container -->
	</div>
	<!-- END #content -->
	<script src="/resources/admin/static/js/main.js"></script>
</body>
</html>